<script setup>
import Foot from '../../components/foot.vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const goClass = () => {
    router.push('/class')
}
</script>
<template>
    <div class="head">
        <div class="title"></div>
        <div class="list">
            <ul>
                <li class="li"><img class="img" src="/image/item1.png" alt=""></li>
                <li class="li"><img class="img" src="/image/item2.png" alt=""></li>
                <li class="li"><img class="img" src="/image/item3.png" alt=""></li>
                <li class="li"><img class="img" src="/image/item4.png" alt=""></li>
            </ul>
        </div>
        <div class="title2"></div>
    </div>
    <div class="main">
        <div class="character">
            <div class="message">
                <div class="name">心理学泰斗</div>
                <div class="title">郑日昌教授</div>
                <div class="text">国内大咖坐镇<br>领衔专家团队协力开发</div>
                <div class="title2">15+</div>
                <div class="title3">专家团队</div>
                <div class="text">专家团队由一线优秀教师<br>各大知名学院专家组成</div>
            </div>
        </div>
        <div class="class">
            <div class="title">课程概要</div>
            <ul>
                <li>心理学前世今生与价值意义</li>
                <li>智能时代的心理测量概述</li>
                <li>心理咨询概论与方法</li>
                <li>测评报告解读与分级干预</li>
                <li>对爸爸拳打脚踢的漂亮女儿</li>
                <li>心理学爱好者的进阶路径</li>
            </ul>
            <a href="#" class="btn"></a>
        </div>
        <div class="btitle">适合对象</div>
        <div class="btext">对心理学感兴趣，想通过一定的学习帮助自己<br>或有意愿通过所学知识帮助他人</div>
        <van-swipe class="swiper" :autoplay="3000" indicator-color="white">
            <van-swipe-item>
                <div class="swiper-item">
                    <div class="header">
                        <div class="left">
                            <img class="s-img" src="/image/name.png" alt="">
                            <div class="name">王老师</div>
                        </div>
                        <div class="right">初中班主任</div>
                    </div>
                    <div class="s-text">
                        郑老师的课对我们班主任来说是一份宝贵的资源，让我们可以更好地了解和支持学生的想法和需求。
                    </div>
                </div>
            </van-swipe-item>
            <van-swipe-item>
                <div class="swiper-item">
                    <div class="header">
                        <div class="left">
                            <img class="s-img" src="/image/name2.png" alt="">
                            <div class="name">李老师</div>
                        </div>
                        <div class="right">初中心理老师</div>
                    </div>
                    <div class="s-text">
                        课程通过案例分析，使我能够将所学知识直接运用到日常指导中，为学生提供更好的支持。
                    </div>
                </div>
            </van-swipe-item>
            <van-swipe-item>
                <div class="swiper-item">
                    <div class="header">
                        <div class="left">
                            <img class="s-img" src="/image/name3.png" alt="">
                            <div class="name">李同学</div>
                        </div>
                        <div class="right">心理学应届毕业生</div>
                    </div>
                    <div class="s-text">
                        这门课程内容充实，老师生动有趣，有助于学生深入理解心理学，为将来的实践奠定了坚实的基础。
                    </div>
                </div>
            </van-swipe-item>
        </van-swipe>
    </div>
    <div class="work">
        <img class="w-img" src="/image/title5.png" alt="">
        <div class="text">对于需要志愿者到校协助开展测后访谈定级的学校<br>可以申请此公益服务</div>
        <div class="content">
            <img class="img" src="/image/title3.png" alt="">
            <div class="step">
                <img src="/image/list.png" alt="">
                <ul class="s-list">
                    <li class="li">认证志愿者入校服务</li>
                    <li class="li">与学校共同完成心理访谈工作</li>
                    <li class="li">访谈过程记录至学生心理档案</li>
                    <li class="li">访谈工作季度总结汇报</li>
                </ul>
            </div>
            <div class="c-text">当前开放申请的地区</div>
            <div class="c-title">无锡、遵义、宜昌、淮北</div>
            <div class="c-text">1. 建议同城申请，以便线下志愿服务</div>
            <div class="c-text">2. 服务为志愿性质，具体由学校约定</div>
            <img class="code" src="/image/code.png" alt="">
            <div class="text">长按扫码添加老师</div>
        </div>
    </div>
    <div class="teacher">
        <div class="t-header">
            <div class="w">
                <img class="t-img" src="/image/title6.png" alt="">
            </div>
        </div>
        <div class="class">
            <img src="/image/class.png" alt="" class="class-bg">
            <a class="btn" @click="goClass"></a>
            <img class="img" src="/image/title4.png" alt="">
            <div class="text">对于需要心理数据进行科研的专业人员<br>
                可以申请脱敏的数据样例</div>
            <div>
                <img class="code" src="/image/code.png" alt="">
            </div>
            <div class="text">长按扫码添加老师</div>
        </div>
    </div>
    <Foot></Foot>
</template>
<style scoped>
.s-img {
    width: 40px;
    height: 40px;
}

.t-img {
    width: 294px;
    /* height: 394px; */
}

.w-img {
    width: 192px;
}

.w {
    width: 342px;
    margin: 0 auto;
}

.head {
    position: relative;
    width: 100%;
    height: 680px;
    background: url(/image/bg1.png) no-repeat center center;
    background-size: 100% auto;
    background-color: #FF6701;

    .title {
        position: absolute;
        top: 194px;
        left: 50%;
        transform: translateX(-50%);
        width: 256px;
        height: 58px;
        background: url(/image/title.png) no-repeat;
        background-size: 256px 58px;
    }

    .title2 {
        position: absolute;
        top: 600px;
        left: 50%;
        transform: translateX(-50%);
        width: 162px;
        height: 58px;
        background: url(/image/title2.png) no-repeat;
        background-size: 162px 58px;
    }

    .list {
        position: absolute;
        top: 292px;
        width: 100%;
        /* height: 130px; */

        .li {
            display: inline-block;
            /* margin-right: 8px; */
            /* margin: 5px; */
            margin-bottom: 8px;
        }


        .img {
            width: 165px;
            height: 130px;
        }
    }

    .list ul {
        /* overflow-x: auto;
        white-space: nowrap;
        text-align: center; */
        display: flex;
        flex-wrap: wrap-reverse;
        justify-content: center;
    }

    .list ul li:nth-child(2n+1) {
        margin-right: 12px;
    }

    /* .list ul::-webkit-scrollbar {
        display: none;
    }

    .list ul li:first-child {
        margin-left: 24px;
    }

    .lli {
        display: inline-block;
        margin-right: 24px;
    } */
}

.main {
    width: 100%;
    height: 870px;
    background: url(/image/bg2.png);
    background-size: 100% 870px;
    background-color: #FF6701;

    .character {
        width: 100%;
        height: 250px;
        background: url(/image/bg3.png) no-repeat;
        background-size: 100% auto;
        margin: 0 auto;

        .message {
            margin-left: 44px;
            padding-top: 20px;
        }

        .name {
            font-size: 12px;
            font-family: PingFangSC-Semibold, PingFang SC;
            font-weight: 600;
            color: #FFFFFF;
            margin-bottom: 6px;
        }

        .title {
            font-size: 24px;
            font-family: SourceHanSansCN-Bold, SourceHanSansCN;
            font-weight: bold;
            color: #FFFFFF;
            margin-bottom: 6px;
        }

        .text {
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #FFFFFF;
            opacity: 0.7;
            margin-bottom: 12px;
        }

        .title2 {
            font-size: 24px;
            font-family: DINAlternate-Bold, DINAlternate;
            font-weight: bold;
            color: #FFFFFF;
        }

        .title3 {
            font-size: 16px;
            font-family: PingFangSC-Semibold, PingFang SC;
            font-weight: 600;
            color: #FFFFFF;
            margin-bottom: 6px;
        }
    }

    .class {
        width: 342px;
        height: 360px;
        margin: 0 auto;
        background: #FCECDD;
        border-radius: 8px;
        padding: 24px;

        .title {
            font-size: 24px;
            font-family: DingTalk-JinBuTi, DingTalk;
            font-weight: normal;
            color: #FF6701;
            text-align: center;
            margin-bottom: 8px;
        }

        .btn {
            display: block;
            width: 158px;
            height: 50px;
            background: url(/image/btn.png) no-repeat;
            background-size: 158px 50px;
            margin-left: 68px;
            margin-top: 20px;
        }
    }

    .class ul li {
        width: 100%;
        height: 34px;
        line-height: 34px;
        text-align: center;
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #FF6701;
    }

    .class ul li:nth-child(2n) {
        background-color: #FFDAC8;
    }

    .btitle {
        font-size: 18px;
        font-family: PingFangSC-Semibold, PingFang SC;
        font-weight: 600;
        color: #FFFFFF;
        margin-top: 20px;
        text-align: center;
        margin-bottom: 8px;
    }

    .btext {
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #FFFFFF;
        text-align: center;
    }

    .swiper {
        width: 340px;
        height: 136px;
        margin: 20px auto;

        .swiper-item {
            width: 340px;
            height: 136px;
            background: linear-gradient(180deg, rgba(255, 114, 19, 0.62) 0%, #FF8028 100%);
            border-radius: 8px;
            padding: 16px;
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #FFFFFF;

            .header {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .left {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    .name {
                        margin-left: 8px;
                        font-style: italic;
                    }
                }
            }

            .s-text {
                font-size: 14px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #FCECDD;
                margin-top: 8px;
            }
        }
    }

}

.work {
    width: 100%;
    height: 785px;
    background: #FCECDD;
    text-align: center;
    padding-top: 36px;

    .text {
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #A7530A;
        margin-bottom: 24px;
    }

    .content {
        position: relative;
        width: 342px;
        height: 707px;
        margin: 0 auto;
        background: url(/image/bg4.png) no-repeat;
        background-size: 342px 707px;

        .img {
            text-align: center;
            margin: 24px 0;
        }

        .step {
            display: flex;
            padding: 0 58px;
            margin-bottom: 50px;

            .s-list {
                /* list-style: none; */
                text-align: left;
                font-size: 14px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #262626;
                margin-left: 25px;
                margin-top: 8px;

                .li {
                    margin-bottom: 37px;
                }

                .li:last-child {
                    margin-bottom: 0;
                }
            }
        }

        .c-text {
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #595959;
            margin-bottom: 8px;
        }

        .c-title {
            font-size: 18px;
            font-family: PingFangSC-Semibold, PingFang SC;
            font-weight: 600;
            color: #FF6701;
            margin-bottom: 12px;
        }

        .code {
            width: 120px;
            height: 120px;
            margin-top: 30px;
            margin-bottom: 8px;
        }
    }
}

.teacher {
    width: 100%;
    height: 1400px;
    background: url(/image/bg6.png);
    margin: 0 auto;

    .t-header {
        width: 100%;
        height: 394px;
        background: url(/image/bg5.png) no-repeat center center;
        background-size: 100% auto;
        padding-left: 27px;
        padding-top: 190px;
    }

    .class {
        position: relative;
        width: 342px;
        height: 597px;
        margin: -20px auto;
        text-align: center;

        .class-bg {
            width: 342px;
            height: 597px;
        }

        .btn {
            position: absolute;
            top: 515px;
            left: 32px;
            width: 165px;
            height: 50px;
            display: block;
            background: url(/image/btn2.png);
            background-size: 165px 50px;
        }

        .img {
            margin-top: 60px;
            width: 142px;
            height: 22px;
        }

        .code {
            text-align: center;
            width: 120px;
            height: 120px;
        }

        .text {
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #FFFFFF;
            margin-bottom: 16px;
            margin-top: 8px;
        }
    }
}
</style>